package com.ruoyi.function.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 商户支付用户记录对象
 *
 * @author ruoyi
 * @date 2025-03-29
 */
public class TransferResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 审批id */
    @Excel(name = "审批id")
    private Long auditId;

    /** appId */
    @Excel(name = "appId")
    private String appId;

    /** 微信支付转账账单号 */
    @Excel(name = "微信支付转账账单号")
    private String transferBillNo;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 加密数据包（Base64 编码） */
    @Excel(name = "加密数据包", readConverterExp = "B=ase64,编=码")
    private String packageInfo;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String userType;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否结束 */
    @Excel(name = "是否结束")
    private String isFinished;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setAuditId(Long auditId)
    {
        this.auditId = auditId;
    }

    public Long getAuditId()
    {
        return auditId;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public String getAppId()
    {
        return appId;
    }

    public void setTransferBillNo(String transferBillNo)
    {
        this.transferBillNo = transferBillNo;
    }

    public String getTransferBillNo()
    {
        return transferBillNo;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }

    public void setPackageInfo(String packageInfo)
    {
        this.packageInfo = packageInfo;
    }

    public String getPackageInfo()
    {
        return packageInfo;
    }

    public void setUserType(String userType)
    {
        this.userType = userType;
    }

    public String getUserType()
    {
        return userType;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setIsFinished(String isFinished)
    {
        this.isFinished = isFinished;
    }

    public String getIsFinished()
    {
        return isFinished;
    }

    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("auditId", getAuditId())
                .append("appId", getAppId())
                .append("transferBillNo", getTransferBillNo())
                .append("state", getState())
                .append("packageInfo", getPackageInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("userType", getUserType())
                .append("userId", getUserId())
                .append("isFinished", getIsFinished())
                .append("balance", getBalance())
                .toString();
    }
}
